package com.qianbao.qianbaobusiness.ui.cashier;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.baseandroid.mvp.BaseMvpActivity;
import com.qianbao.qianbaobusiness.R;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 帮助详情
 */
public class QuestionDetailActivity extends BaseMvpActivity<QuestionDetailView, QuestionDetailPresenter> {

    @BindView(R.id.toolbar_title)
    TextView toolbarTitle ;      //标题

    @BindView(R.id.toolbar_back)
    RelativeLayout toolbarBack ;    //返回

    @BindView(R.id.tv_title)
    TextView tvTitle ;  //小标题

    @BindView(R.id.tv_content)
    TextView tvContent ;    //内容

    private String parenttitle ;
    private String title ;
    private String content ;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_question_detail;
    }

    @Override
    protected void initInject() {
        getActivityComponent().inject(this);
    }

    @Override
    protected void setupView() {

    }

    @Override
    protected void setupData(Bundle savedInstanceState) {
        parenttitle = getIntent().getStringExtra("parenttitle");
        title = getIntent().getStringExtra("title");
        content = getIntent().getStringExtra("content");
        toolbarTitle.setText(parenttitle);
        tvTitle.setText(title);
        tvContent.setText(content);
    }

    @OnClick({R.id.toolbar_back})
    public void OnClock(View view){
        switch (view.getId()){
            case R.id.toolbar_back :
                    finish();
                break;
        }
    }
}
